package com.blueocean_health.care.management.domain.vo;

import com.blueocean_health.care.management.em.UserSourceTypeEnum;

/**
* 用户模块
* @author huyanqiu
* @date 2018年5月14日 下午5:55:10
* @version 版本号：1.0
*/
public class UserAccountVo {
	
	// 用户ID
    private Integer userId;
    // 用户名
    private String userName;
    // 用户名称
    private String userRealName;
    // 组织/项目Id
    private String teamId;
    // 组织/项目Id名称
    private String teamName;
    // 用户来源
    private String userSource;
    // 用户来源名称
    private String userSourceName;
    // 是否启用 1：启用 0：禁用
    private String enableStatus;
    
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserRealName() {
		return userRealName;
	}
	public void setUserRealName(String userRealName) {
		this.userRealName = userRealName;
	}
	public String getTeamId() {
		return teamId;
	}
	public void setTeamId(String teamId) {
		this.teamId = teamId;
	}
	public String getTeamName() {
		return teamName;
	}
	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}
	public String getUserSource() {
		return userSource;
	}
	public void setUserSource(String userSource) {
		this.userSource = userSource;
		UserSourceTypeEnum valueOf = null;
		try {
			valueOf = UserSourceTypeEnum.valueOf("_"+getUserSource());
			this.userSourceName = valueOf.getVal();
		} catch (IllegalArgumentException e) {
			this.userSourceName = "";
		}
	}
	public String getUserSourceName() {
		return userSourceName;
	}
	public void setUserSourceName(String userSourceName) {
		this.userSourceName = userSourceName;
	}
	public String getEnableStatus() {
		return enableStatus;
	}
	public void setEnableStatus(String enableStatus) {
		this.enableStatus = enableStatus;
	}
	
}
